﻿
using NursingFormSystem.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NursingFormSystem
{
    public  class FormBase : Form
    {
        public NursingFormSystem.DNNursingService.BNNursingDocsSystem bnService = new NursingFormSystem.DNNursingService.BNNursingDocsSystem();
        public static Tb_User LoginUser;

        public FormBase()
        {

        }

        public Tb_User InitLoginUser(string[] UserParam)
        {
            //if (LoginUser == null)
            //{
                LoginUser = new Tb_User();
                LoginUser.UserId = UserParam[0];
                LoginUser.UserName = UserParam[1];
                LoginUser.DepartmentCode = UserParam[2];
                LoginUser.DepartmentName = UserParam[3];
                LoginUser.JobTitle = UserParam[4];
                LoginUser.PositionTitle = UserParam[5];
            //}
            return LoginUser;
        }
        public PatientInfoView formParams;

    }


}
